package com.project.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.project.domain.entity.BizBuyerContract;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * 出账合同Mapper接口
 *
 * @author baige
 * @date 2025-02-25
 */
public interface BuyerContractMapper extends BaseMapper<BizBuyerContract> {

    BizBuyerContract selectBizBuyerContractById(@Param("id") String id);
    List<BizBuyerContract> selectBizBuyerContractList(@Param(Constants.WRAPPER) Wrapper<BizBuyerContract> queryWrapper);
    List<BizBuyerContract> getBuyerContractListConnectedTable(@Param(Constants.WRAPPER) Wrapper<BizBuyerContract> queryWrapper);

    List<HashMap<String, Integer>> listStatistics(@Param(Constants.WRAPPER) Wrapper<BizBuyerContract> queryWrapper);

    String getContractCode(String prefix);

    List<BizBuyerContract> getHxZxXmByName(@Param(Constants.WRAPPER) Wrapper<BizBuyerContract> queryWrapper);
}
